<?php
include_once("class.lib/db.class.php");
include_once("class.lib/mention.class.php");

header('Content-type: text') ;
				  
				  
				  
				  $mention  = new Mention();
                  //$mentionlist = $mention->getAllMention($_POST['id']);
				  $mentionlist = $mention->getAllMention(strtok($_POST['id'],"id="));
				  
     			  $libelle="mention";	
				  

echo "<select name=\"".$libelle."\" id=\"".$libelle."\" maxlength=\"23\"  
OnChange=\" if(this.value=='autre') { document.getElementById('autremention').style.display ='';} \" 
onKeyUp=\"if(this.value=='autre') { document.getElementById('autremention').style.display ='';} \" >";


				  // Liste des mentions
				 	echo "<OPTION value=\"\"></OPTION>";
				   echo "<OPTION value=\"autre\">Autres</OPTION>";
                 while (list($clef,$valeur)=each($mentionlist)) 
				     {
						echo "<OPTION value=$valeur[0]>$valeur[1]</OPTION>";
                     }

 echo "</select>";
 
 ?>
